<!DOCTYPE html>
<?php
//session_save_path("/home/users/web/b1889/ipg.cemausaccom/cgi-bin/tmp");
session_start();
?>
<html lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<title>Ingreso - Centro de Estudios del Mar y Acuicultura</title>
		<meta name="generator" content="Bootply" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<!--[if lt IE 9]>
			<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<link href="css/styles.css" rel="stylesheet">
	</head>
	<body>
	<br>
	
<!--login modal-->
<div id="loginModal" class="modal show" tabindex="-1" role="dialog" aria-hidden="true">
<br>
<center>
	<img src="../img/cema.PNG" width='20%'></img>
		</center>
  <div class="modal-dialog">
  <div class="modal-content">
      <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h1 class="text-center">Ingresar</h1>
      </div>
      <div class="modal-body">
          <form class="form col-md-12 center-block" id="sesionForm" method="post" action="../administrative/clases/Intermedio.php">
            <div class="form-group">
              <input type="text" class="form-control input-lg" placeholder="Email" id="usuario" name="usuario">
            </div>
            <div class="form-group">
              <input type="password" class="form-control input-lg" placeholder="Password" id="pass" name="pass">
            </div>
            <div class="form-group">
              <button class="btn btn-primary btn-lg btn-block" type="submit" name="iniciar">Entrar</button>
              <span><a href="#">Recuperar Contraseña</a></span>
            </div>
			<div id="salida">
	
			</div>
          </form>
      </div>
      <div class="modal-footer">
          <div class="col-md-12">
          <a href="../"><button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button></a>
		  </div>	
      </div>
  </div>
  </div>
</div>
	
	<!-- script references -->
		<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script type="text/javascript">
			
			$(document).ready(function() {

		//AJAX DE SUBMIT
		$('#sesionForm').submit(function(event){
		event.preventDefault();
				
				var fd = new FormData(this);
				fd.append("tipo", "60");
				$.ajax({
					url: "../administrative/clases/Intermedio.php",
					type: "POST",
					data:  fd,
					contentType: false,
					cache: false,
					processData:false,
					success: function(data){
						$("#salida").html(data);

					},
					error: function(){} 	        
				});
		});
	});		
		</script>
	</body>
</html>